<?php
namespace Admin\Models\pm;
use Admin\Models\pm\basicModel;

class XhpmProduct extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=10, nullable=false)
     */
    public $iId;

    /**
     * @var string
     * @Column(type="string", length=100, nullable=true)
     */
    public $sName;

    /**
     *
     * @var integer
     * @Column(type="tinyint", length=1, nullable=true)
     */
    public $iType;

    /**
     * @var string
     * @Column(type="string", length=100, nullable=true)
     */
    public $sCode;

    /**
     * @var string
     * @Column(type="string", length=100, nullable=true)
     */
    public $seriesCode;

    /**
     * @var string
     * @Column(type="string", length=150, nullable=true)
     */
    public $sAndroPackage;

    /**
     * @var string
     * @Column(type="string", length=150, nullable=true)
     */
    public $sAndroProject;

    /**
     * @var string
     * @Column(type="string", length=150, nullable=true)
     */
    public $sIosPackage;

    /**
     * @var string
     * @Column(type="string", length=150, nullable=true)
     */
    public $sIosEntPackage;

    /**
     * @var string
     * @Column(type="string", length=150, nullable=true)
     */
    public $sServiceUrl;

    /**
     * @var string
     * @Column(type="string", length=150, nullable=true)
     */
    public $sDocUrl;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bArchived;


    public function initialize()
    {
        $this->setSource("XHPm_Product");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHPm_Product';
    }


    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhpmProduct[]|XhpmProduct
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhpmProduct
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
